package com.yykj.drup.server.service.feign.fallback;

import com.yykj.common.vo.ResultVO;
import com.yykj.drup.server.service.feign.PrescriptionServerFeign;
import com.yykj.prescription.client.dto.PrescriptionDetailDTO;
import com.yykj.prescription.client.dto.PrescriptionOrderCheckResultDTO;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author zeng
 * @Date 2022/3/17
 */
@Slf4j
public class PrescriptionServerFeignFallBack implements PrescriptionServerFeign {

    @Override
    public ResultVO<PrescriptionDetailDTO> prescriptionInfo(String prescriptionId) {
        log.error("服务调用失败 ：prescription-server.prescriptionInfo()");
        throw new RuntimeException("服务调用失败 ：prescription-server");
    }

    @Override
    public ResultVO<PrescriptionOrderCheckResultDTO> checkPrescriptionOrder(String prescriptionId) {
        log.error("服务调用失败 ：prescription-server.checkPrescriptionOrder()");
        throw new RuntimeException("服务调用失败 ：prescription-server");
    }
}
